﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Practices.Composite.UnityExtensions;
using Microsoft.Practices.Composite.Modularity;
using Microsoft.Practices.Composite.Events;

namespace YourWorld
{
    public class Bootstrapper : UnityBootstrapper
    {
        protected override IModuleCatalog GetModuleCatalog()
        {
            ModuleCatalog m = ModuleCatalog.CreateFromXaml(
                        new Uri( "/YourWorld;component/Resources/ModuleCatalog.xaml", UriKind.Relative ) );

            return m;
        }

        protected override DependencyObject CreateShell()
        {
            // Use the container to create an instance of the shell.
            ShellView view = Container.Resolve<ShellView>();

            // Display the Shell as the root visual for the application.
            Application.Current.RootVisual = view;
            return view;
        }
    }
}
